﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SaleOnlineSystem.Controls
{
    public partial class ListShowGroupProduct : System.Web.UI.UserControl
    {
        //public ListShowGroupProduct(int idcat)
        //{
        //}
        public int catid;
        public string title;
        public int count;
        protected void Page_Load(object sender, EventArgs e)
        {
            DataTable dt = DAL.DCollector.DBCollector.Instance.StoredProcedureSelectWhereByID("tbl_Product", " *,Product_SalesPrice - round(((Product_SalesPrice * Product_discount)/100),0) as newprice ", "Category_ID3", catid, "selectwhereid");
            count = dt.Rows.Count;

            rpt_listview.DataSource = dt;
            rpt_listview.DataBind();
        }
    }
}